package com.danco.sn.model.dao;



public class Main {
	
	//private static final String d= "Select * from news_user  inner join (select * from friends_table where id_friend=?)s using(id_user) order by news_date desc";
	public static void main(String args[]){
		/*HibernateUtil h = HibernateUtil.getInstance();
		Session session =h.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		UserDAO ud = new UserDAO();
		NewsDAO nd = new NewsDAO();
		IUser u=(IUser) ud.read("id",111111, session);
		List<INews> list = nd.getListNewsFriend(session, u);
		System.out.println(list.get(0).getTextNews() );
		session.getTransaction().commit();*/
		DBManager s =DBManager.getInstance();
		System.out.println(s.autorization("jj"));
	}
}
